/*
  用来存放元素样式初始化
*/
// 颜色
// $red: #ff5a3c;
// $blue: #da4cfe;
// $purple: purple;
// $white: white;
// $black: #2c3e50;
// $green: #cbbf3e;
// $gray: #999;
// $boxBgc: #fefef5;
// $bgc: #ebebea;

// // 字号
// $big: 32px;
// $large: 24px;
// $mid: 14px;
// $small: 12px;

//所有的元素默认使用border-box, 内边距和border将包含在元素的宽高里面
* {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  /* Firefox */
  -webkit-box-sizing: border-box;
  /* Safari */
}

#app,
html,
body,
#app > .el-container {
  height: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-touch-callout: none; // -webkit-user-select: none;
  // user-select: none;
  word-wrap: break-word;
  font-size: 14px;
}

html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
dl,
dd,
figure,
menu,
input,
textarea,
button,
select,
th,
td {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
  font-weight: normal;
}

input,
textarea,
button,
select {
  outline: 0 none;
}

textarea {
  resize: vertical;
}

input[type='button'],
input[type='submit'],
input[type='reset'] {
  -webkit-appearance: none;
  appearance: none;
}

pre {
  margin: 0;
  font: 14px/1.4 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro',
    monospace;
}

a {
  text-decoration: none;
  outline: 0 none;
  color: $blue;

  &:link {
    color: $purple;
    text-decoration: none;
  }
  &:visited {
    color: $blue;
    text-decoration: none;
  }
  &:hover {
    color: $purple;
    text-decoration: underline;
  }
  &:active {
    color: $purple;
  }
}

//没有href属性的锚点继承父级的样式
// a:not([href]) {
//   color: inherit;
// }

ol,
ul,
dl {
  margin: 0;
  padding: 0;
}
li,
dd,
dt {
  padding: 0;
  margin: 0;
  list-style: none;
}

.hide {
  display: none;
}
.fl {
  float: left;
}
.fr {
  float: right;
}
.flex-box {
  display: flex;
  flex-direction: row;
}
.flex-item {
  flex: 1 1 auto;
}
.cp {
  cursor: pointer;
}

.ellips {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page {
  background: $white;
  padding: 10px;
}

.help-page {
  background: $white;
  padding: 20px 6%;
}

.search-botton {
  padding: 0px 8px 0 0 !important;
  padding: 8px 15px !important;
  margin-top: 6px;
}

.can-not-select {
  user-select: none;
}
